<!DOCTYPE html>
<html>
<head>
<#include "../include/include.ftl"/>
<meta charset="utf-8">
<title>增加缴纳单位表单</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<script type="text/javascript">
	layui.use('form', function() {
	});

	$(document).ready(function() {
		$("#cancel").click(function() {
			var index = parent.layer.getFrameIndex(window.name);
			parent.layer.close(index);
		})
	})

	$(document).ready(function() {
		var Flag = $("#optionValue").val();
		if (Flag == 1) {
			$("#optionId").attr("value", "学校");
		} else if (Flag == 2) {
			$("#optionId").attr("value", "物业");
		}
	});
</script>
</head>
<body>
	<form class="layui-form" style="margin-top: 50px">
		<input type="hidden" name="id" value="${payUnit.id }" /> <input
			type="hidden" name="status" value="${payUnit.status}" /> <input
			id="optionValue" type="hidden" class="span2" value="${payUnit.type}">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label"><span style="color: black;">单位名称:</span><span
					style="color: red;"> *</span></label>
				<div class="layui-input-inline">
					<input type="text" disabled="disabled" name="name"
						style="border: 0" class="layui-input" lay-verify="required"
						value="${payUnit.name}">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">单位类型:</label>
				<div class="layui-input-inline">
					<input type="text" disabled="disabled" name="type" id="optionId"
						style="border: 0" class="layui-input" lay-verify="required"
						value="未设置">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label"><span style="color: black;">对公账号:</span><span
					style="color: red;"> *</span></label>
				<div class="layui-input-inline">
					<input type="text" disabled="disabled" name=corporateAccount
						style="border: 0" class="layui-input" lay-verify="required"
						value="${payUnit.corporateAccount}">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">负责人:</label>
				<div class="layui-input-inline">
					<input type="text" disabled="disabled" name="principal"
						style="border: 0" class="layui-input" value="${payUnit.principal}"
						lay-verify="required">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label"><span style="color: black;">联系电话:</span><span
					style="color: red;"> *</span></label>
				<div class="layui-input-inline">
					<input type="text" disabled="disabled" name=phoneNumber
						style="border: 0" class="layui-input"
						value="${payUnit.phoneNumber}" lay-verify="phone">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">地址:</label>
				<div class="layui-input-inline">
					<input type="text" disabled="disabled" name="address"
						style="border: 0" class="layui-input" value="${payUnit.address}"
						lay-verify="required">
				</div>
			</div>
		</div>

		<div class="layui-form-item"
			style="float: right; margin-right: 50%; margin-top: 30px">
			<div class="layui-input-block">
				<button class="layui-btn" id="cancel" lay-filter="add">确定</button>
			</div>
		</div>
	</form>
</body>
</html>